package SubClasses;

public enum Direction {
	RIGHT,LEFT,UP,DOWN,NONE;
	
	public int GetValue()
	{
		if(this==RIGHT) return 1;
		if(this==LEFT) return -1;
		if(this==UP) return -1;
		if(this==DOWN) return 1;
		if(this==NONE) return 0;
		return 0;
	}
	public Direction SwapDir()
	{
		if(this==RIGHT) return LEFT;
		if(this==LEFT) return RIGHT;
		if(this==UP) return DOWN;
		if(this==DOWN) return UP;
		 return NONE;
	}
	/*
	RIGHT(1),LEFT(-1),UP(-1),DOWN(1);
	private final int id;
	Direction(int id) { this.id = id; }
    public int getValue() { return id; }*/
}
